
import java.io.IOException;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.game.GameCanvas;
import javax.microedition.lcdui.game.Sprite;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author FFK
 */
public class hight_score extends GameCanvas implements CommandListener{

    public Sprite alpha, number;
    private Command back ;
    public  Display d;
    public Menu menu;
    public hight_score (Display dp, Menu mn){
        super(false);
        d = dp;
        back = new Command("OK", Command.BACK , 1);
        this.addCommand(back);
    }
    public void commandAction(Command cmnd, Displayable dsplbl) {
         if(cmnd == back) {
           d.setCurrent(menu);
        }
    }
    public void showhightscore(){
        d.setCurrent(this);
    }
    private void loadGraphics(){
        try {
            ImageLoader loader = ImageLoader.getInstance();
            alpha = new Sprite(loader.loadImage("/alpha.png"), 24, 27);
            number = new Sprite(loader.loadImage("/numbers.png"), 24, 27);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    
    
}
